import React from "react";
import { useSearchParams } from "react-router-dom";

export default function List() {
  const [search, setSearch] = useSearchParams();
  // console.log(search);
  // 查看 参数里面有哪些数据
  // console.log(search.keys());
  for (let key of search.keys()) {
    // console.log(key);
    console.log(search.get(key));
  }

  // 调用get方法得到对应的数据
  // console.log(search.get("id"));
  // console.log(search.get("abc"));
  // console.log(search.get("def"));
  return <div>List</div>;
}
